-- GENERATED SPELL FOR [Injured Thrallmar Grunt] --


function spell0_16590(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16590', 5270, 1)
end

function spell1_16590(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16590', 2311, 1)
end

function Sorts_16590(pUnit, Event)
local choix_sorts_16590 = math.random(0, 1)
if choix_sorts_16590 == 0 then
pUnit:RegisterEvent('spell0_16590', 1, 1)
end
if choix_sorts_16590 == 1 then
pUnit:RegisterEvent('spell1_16590', 1, 1)
end
end

function mob16590_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16590', math.random(1500, 3000), 1)
end

function mob16590_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16590_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16590_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16590, 1, 'mob16590_Action')
RegisterUnitEvent(16590, 2, 'mob16590_Leave')
RegisterUnitEvent(16590, 3, 'mob16590_Kill')
RegisterUnitEvent(16590, 4, 'mob16590_Die')
